#region Using directives

using System;
using System.Collections.Generic;
using System.Text;

using Weazel.Gezel.Model.Errors;

#endregion

namespace Weazel.Gezel.Model
{
  public partial class IPBlock : IVerifiable
  {
		public void Verify(ref List<VerificationError> errors, ref List<VerificationWarning> warnings, params object[] arguments)
    {
      if (this.ipType == null)
      {
        ErrorMessage message = new ErrorMessage();
        message.AddString("No type associated with IP block '");
        message.AddEntity(this);
        message.AddString("' at ");
        message.AddPosition(StartPosition);
        message.AddString(".");

        errors.Add(
          new VerificationError(
            VerificationErrorType.IpBlockNoType,
            message
          )
        );
      }
    }
  }
}
